Optimal. Leaf size=59 \[ \frac{\tan ^{-1}(\sinh (c+d x))}{d (a-b)}-\frac{\sqrt{b} \tan ^{-1}\left (\frac{\sqrt{b} \sinh (c+d x)}{\sqrt{a}}\right )}{\sqrt{a} d (a-b)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0667097, antiderivative size = 59, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.19, Rules used = {3190, 391, 203, 205} \[ \frac{\tan ^{-1}(\sinh (c+d x))}{d (a-b)}-\frac{\sqrt{b} \tan ^{-1}\left (\frac{\sqrt{b} \sinh (c+d x)}{\sqrt{a}}\right )}{\sqrt{a} d (a-b)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3190
Rule 391
Rule 203
Rule 205
Rubi steps
\begin{align*} \int \frac{\text{sech}(c+d x)}{a+b \sinh ^2(c+d x)} \, dx &=\frac{\operatorname{Subst}\left (\int \frac{1}{\left (1+x^2\right ) \left (a+b x^2\right )} \, dx,x,\sinh (c+d x)\right )}{d}\\ &=\frac{\operatorname{Subst}\left (\int \frac{1}{1+x^2} \, dx,x,\sinh (c+d x)\right )}{(a-b) d}-\frac{b \operatorname{Subst}\left (\int \frac{1}{a+b x^2} \, dx,x,\sinh (c+d x)\right )}{(a-b) d}\\ &=\frac{\tan ^{-1}(\sinh (c+d x))}{(a-b) d}-\frac{\sqrt{b} \tan ^{-1}\left (\frac{\sqrt{b} \sinh (c+d x)}{\sqrt{a}}\right )}{\sqrt{a} (a-b) d}\\ \end{align*}
Mathematica [A] time = 0.126033, size = 54, normalized size = 0.92 \[ \frac{\frac{\sqrt{b} \tan ^{-1}\left (\frac{\sqrt{a} \text{csch}(c+d x)}{\sqrt{b}}\right )}{\sqrt{a}}+2 \tan ^{-1}\left (\tanh \left (\frac{1}{2} (c+d x)\right )\right )}{a d-b d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.058, size = 481, normalized size = 8.2 \begin{align*}{\frac{ab}{d \left ( a-b \right ) }{\it Artanh} \left ({a\tanh \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ){\frac{1}{\sqrt{ \left ( 2\,\sqrt{-b \left ( a-b \right ) }+a-2\,b \right ) a}}}} \right ){\frac{1}{\sqrt{-b \left ( a-b \right ) }}}{\frac{1}{\sqrt{ \left ( 2\,\sqrt{-b \left ( a-b \right ) }+a-2\,b \right ) a}}}}+{\frac{b}{d \left ( a-b \right ) }{\it Artanh} \left ({a\tanh \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ){\frac{1}{\sqrt{ \left ( 2\,\sqrt{-b \left ( a-b \right ) }+a-2\,b \right ) a}}}} \right ){\frac{1}{\sqrt{ \left ( 2\,\sqrt{-b \left ( a-b \right ) }+a-2\,b \right ) a}}}}-{\frac{{b}^{2}}{d \left ( a-b \right ) }{\it Artanh} \left ({a\tanh \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ){\frac{1}{\sqrt{ \left ( 2\,\sqrt{-b \left ( a-b \right ) }+a-2\,b \right ) a}}}} \right ){\frac{1}{\sqrt{-b \left ( a-b \right ) }}}{\frac{1}{\sqrt{ \left ( 2\,\sqrt{-b \left ( a-b \right ) }+a-2\,b \right ) a}}}}+{\frac{ab}{d \left ( a-b \right ) }\arctan \left ({a\tanh \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ){\frac{1}{\sqrt{ \left ( 2\,\sqrt{-b \left ( a-b \right ) }-a+2\,b \right ) a}}}} \right ){\frac{1}{\sqrt{-b \left ( a-b \right ) }}}{\frac{1}{\sqrt{ \left ( 2\,\sqrt{-b \left ( a-b \right ) }-a+2\,b \right ) a}}}}-{\frac{b}{d \left ( a-b \right ) }\arctan \left ({a\tanh \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ){\frac{1}{\sqrt{ \left ( 2\,\sqrt{-b \left ( a-b \right ) }-a+2\,b \right ) a}}}} \right ){\frac{1}{\sqrt{ \left ( 2\,\sqrt{-b \left ( a-b \right ) }-a+2\,b \right ) a}}}}-{\frac{{b}^{2}}{d \left ( a-b \right ) }\arctan \left ({a\tanh \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ){\frac{1}{\sqrt{ \left ( 2\,\sqrt{-b \left ( a-b \right ) }-a+2\,b \right ) a}}}} \right ){\frac{1}{\sqrt{-b \left ( a-b \right ) }}}{\frac{1}{\sqrt{ \left ( 2\,\sqrt{-b \left ( a-b \right ) }-a+2\,b \right ) a}}}}+2\,{\frac{\arctan \left ( \tanh \left ( 1/2\,dx+c/2 \right ) \right ) }{d \left ( a-b \right ) }} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \frac{2 \, \arctan \left (e^{\left (d x + c\right )}\right )}{a d - b d} - 2 \, \int \frac{b e^{\left (3 \, d x + 3 \, c\right )} + b e^{\left (d x + c\right )}}{a b - b^{2} +{\left (a b e^{\left (4 \, c\right )} - b^{2} e^{\left (4 \, c\right )}\right )} e^{\left (4 \, d x\right )} + 2 \,{\left (2 \, a^{2} e^{\left (2 \, c\right )} - 3 \, a b e^{\left (2 \, c\right )} + b^{2} e^{\left (2 \, c\right )}\right )} e^{\left (2 \, d x\right )}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.66076, size = 1341, normalized size = 22.73 \begin{align*} \left [-\frac{\sqrt{-\frac{b}{a}} \log \left (\frac{b \cosh \left (d x + c\right )^{4} + 4 \, b \cosh \left (d x + c\right ) \sinh \left (d x + c\right )^{3} + b \sinh \left (d x + c\right )^{4} - 2 \,{\left (2 \, a + b\right )} \cosh \left (d x + c\right )^{2} + 2 \,{\left (3 \, b \cosh \left (d x + c\right )^{2} - 2 \, a - b\right )} \sinh \left (d x + c\right )^{2} + 4 \,{\left (b \cosh \left (d x + c\right )^{3} -{\left (2 \, a + b\right )} \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right ) + 4 \,{\left (a \cosh \left (d x + c\right )^{3} + 3 \, a \cosh \left (d x + c\right ) \sinh \left (d x + c\right )^{2} + a \sinh \left (d x + c\right )^{3} - a \cosh \left (d x + c\right ) +{\left (3 \, a \cosh \left (d x + c\right )^{2} - a\right )} \sinh \left (d x + c\right )\right )} \sqrt{-\frac{b}{a}} + b}{b \cosh \left (d x + c\right )^{4} + 4 \, b \cosh \left (d x + c\right ) \sinh \left (d x + c\right )^{3} + b \sinh \left (d x + c\right )^{4} + 2 \,{\left (2 \, a - b\right )} \cosh \left (d x + c\right )^{2} + 2 \,{\left (3 \, b \cosh \left (d x + c\right )^{2} + 2 \, a - b\right )} \sinh \left (d x + c\right )^{2} + 4 \,{\left (b \cosh \left (d x + c\right )^{3} +{\left (2 \, a - b\right )} \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right ) + b}\right ) - 4 \, \arctan \left (\cosh \left (d x + c\right ) + \sinh \left (d x + c\right )\right )}{2 \,{\left (a - b\right )} d}, -\frac{\sqrt{\frac{b}{a}} \arctan \left (\frac{1}{2} \, \sqrt{\frac{b}{a}}{\left (\cosh \left (d x + c\right ) + \sinh \left (d x + c\right )\right )}\right ) + \sqrt{\frac{b}{a}} \arctan \left (\frac{{\left (b \cosh \left (d x + c\right )^{3} + 3 \, b \cosh \left (d x + c\right ) \sinh \left (d x + c\right )^{2} + b \sinh \left (d x + c\right )^{3} +{\left (4 \, a - b\right )} \cosh \left (d x + c\right ) +{\left (3 \, b \cosh \left (d x + c\right )^{2} + 4 \, a - b\right )} \sinh \left (d x + c\right )\right )} \sqrt{\frac{b}{a}}}{2 \, b}\right ) - 2 \, \arctan \left (\cosh \left (d x + c\right ) + \sinh \left (d x + c\right )\right )}{{\left (a - b\right )} d}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\operatorname{sech}{\left (c + d x \right )}}{a + b \sinh ^{2}{\left (c + d x \right )}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.43074, size = 289, normalized size = 4.9 \begin{align*} -\frac{2 \, \sqrt{a b} d{\left | b \right |} \arctan \left (\frac{2 \, \sqrt{\frac{1}{2}}{\left (e^{\left (d x + c\right )} - e^{\left (-d x - c\right )}\right )}}{\sqrt{\frac{4 \, a d + 4 \, b d - \sqrt{-64 \, a b d^{2} + 16 \,{\left (a d + b d\right )}^{2}}}{b d}}}\right )}{{\left (a d - b d\right )}^{2} b -{\left (a b + b^{2}\right )} d{\left | -a d + b d \right |}} - \frac{2 \, b d \arctan \left (\frac{2 \, \sqrt{\frac{1}{2}}{\left (e^{\left (d x + c\right )} - e^{\left (-d x - c\right )}\right )}}{\sqrt{\frac{4 \, a d + 4 \, b d + \sqrt{-64 \, a b d^{2} + 16 \,{\left (a d + b d\right )}^{2}}}{b d}}}\right )}{a d{\left | -a d + b d \right |} + b d{\left | -a d + b d \right |} +{\left (a d - b d\right )}^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]